package com.neusoft.feign;

import com.neusoft.po.Dept;
import com.neusoft.po.ResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "provider-server",fallback = DeptFeignError.class,contextId = "provider-server2")
public interface DeptFeignClient {

    @GetMapping("dept/getDeptByNo/{deptno}")
    ResponseBean<Dept> getDeptByNo(@PathVariable("deptno") Integer deptno);
}
